//仪表盘
// import { stringify } from 'qs';
import request from '@/utils/request';

// export const token = localStorage.getItem('token');
// export const user = localStorage.getItem('user') ? JSON.parse(localStorage.getItem('user')) : {};

// 仓库订单仪表盘
export async function selectOrderStatusCountbyDate(params) {
  return request(
    '/server/api/kangNingOrder/selectOrderStatusCountbyDate',
    {
      method: 'POST',
      body: params
    },
    true
  );
}
// 康宁订单状态表按时间点  -- 订单状态
export async function selectKangNingOrderStatusList(params) {
  return request(
    '/server/api/kangNingOrder/selectKangNingOrderStatusList',
    {
      method: 'POST',
      body: params
    },
    true
  );
}
//康宁订单 客户订单 统计  --出货订单分布
export async function selectCustomerOrders(params) {

  return request(
    `/server/api/kangNingOrder/selectCustomerOrders`,
    {
      method: 'POST',
      body: params,
    },
    true
  );
}
//康宁订单 KPI 统计  --KPI
export async function selectKPI(params) {

  return request(
    `/server/api/kangNingOrder/selectKPI`,
    {
      method: 'POST',
      body: params,
    },
    true
  );
}


// 查看OCS进出托盘流量
export async function selectPalletFlow() {
  return request(
    `/server/api/kangNingOrder/selectPalletFlow`,
    {
      method: 'POST',
      body:{
        beginTime:'',
        overTime:'',
        timeNode:''
      }
    },
    true
  );
}

// 查看OCS库存统计
export async function selectStockStatistics(){
  return request(
    `/server/api/kangNingOrder/selectStockStatistics`,
    {
      method: 'POST',
      body:{
        beginTime:'',
        overTime:'',
        timeNode:''
      }
    },
    true
  );
}

// 查看OCS库存统计
export async function selectOrderStatistics(){
  return request(
    `/server/api/kangNingOrder/selectOrderStatistics`,
    {
      method: 'POST',
      body:{
        beginTime:'',
        overTime:'',
        timeNode:''
      }
    },
    true
  );
}